//所有跟goodslist相关的异步请求
import request from '@/utils/request.js'

//获取用户列表【条件+分页】
export function listSearch(data){

    return request({
        url:'user/search',
        method: 'post',
        data
    })
}

//添加
export function userSave(data){

    return request({
        url:'user/save',
        method: 'post',
        data
    })
}


//单个删除
export function delById(data){

    return request({
        url:'user/delById?userId='+data,
        method: 'get'
    })
}

//批量删除
export function delByIds(data){

    return request({
        url:'user/delByIds',
        method: 'post',
        data
    })
}